//
//  MytextTableViewCell.m
//  UI_HLJ_Frame
//
//  Created by  毕宏伟 on 15/7/9.
//  Copyright (c) 2015年 毕宏伟. All rights reserved.
//

#import "MytextTableViewCell.h"

@implementation MytextTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self =[super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.backView =[[UIView alloc]init];
        
        [self.contentView addSubview:self.backView];
        [_backView release];
        
        self.bigImage =[[UIImageView alloc]init];
        
        [self.contentView addSubview:self.bigImage];
        [_bigImage release];
        
        
        self.titleLabel =[[UILabel alloc]init];
        
        [self.contentView addSubview:self.titleLabel];
        [_titleLabel release];
        
        self.addressLabel= [[UILabel alloc]init];
        
        [self.contentView addSubview:self.addressLabel];
        [_addressLabel release];
    
        self.zhekouLabel =[[UILabel alloc]init];
        
        [self.contentView addSubview:self.zhekouLabel];
        [_zhekouLabel release];

        
    }
    return self;
}


- (void)layoutSubviews
{
    [super layoutSubviews];
    
    
    self.backView.frame =CGRectMake(10, 10, self.contentView.frame.size.width-20, self.contentView.frame.size.height-20);
    
    self.bigImage.frame =CGRectMake(10, 10, self.contentView.frame.size.width-20, self.contentView.frame.size.height-80);
    
    self.titleLabel.frame =CGRectMake(10, self.contentView.frame.size.height-70, self.contentView.frame.size.width-50,30);
    
    self.addressLabel.frame =CGRectMake(10,self.contentView.frame.size.height-40 ,self.contentView.frame.size.width/2, 25);
    
    self.zhekouLabel.frame =CGRectMake(self.contentView.frame.size.width/2, self.contentView.frame.size.height-40, self.frame.size.width/4, 25);
    
//    self.shichangLabel.frame =CGRectMake(self.contentView.frame.size.width*3/4, self.contentView.frame.size.height-40, self.frame.size.width/5, 25);
    
}



- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
